package org.springblade.modules.restaurant.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author harry
 * @公众号 Harry技术
 */
@Data
public class PurchaseCommodityTreeVO {
	/**
	 * 商品ID
	 */
	@Schema(description = "商品ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long commodityId;
	/**
	 * 采购类别ID
	 */
	@Schema(description = "采购类别ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long categoryId;
	/**
	 * 类别名
	 */
	@Schema(description = "类别名")
	private String categoryName;
	/**
	 * 排序
	 */
	@Schema(description = "排序")
	private Integer sort;
	/**
	 * 货物名
	 */
	@Schema(description = "货物名")
	private String commodityName;
	/**
	 * 货物图
	 */
	@Schema(description = "货物图")
	private String productPicture;
	/**
	 * 单位
	 */
	@Schema(description = "单位")
	private String unit;

	/**
	 * 数量
	 */
	@Schema(description = "数量")
	private Integer number = 0;


	/**
	 * 收藏状态 0 未收藏 1 已收藏
	 */
	@Schema(description = "收藏状态 0 未收藏 1 已收藏")
	private String collect;

}
